package com.game.ThauanFramework;

import com.example.monstercatch.MinhasCoisas;
import com.example.monstercatch.R;

import android.graphics.Bitmap;
import android.graphics.BitmapFactory;

public class BitmapStorage {
	
	public Bitmap getMonstro_01() {
		return monstro_01;
	}
	public Bitmap getMonstro_02() {
		return monstro_02;
	}
	public Bitmap getMonstro_03() {
		return monstro_03;
	}
	public Bitmap getMonstro_04() {
		return monstro_04;
	}
	public Bitmap getPortao() {
		return portao;
	}
	private Bitmap monstro_01;
	private Bitmap monstro_02;
	private Bitmap monstro_03;
	private Bitmap monstro_04;
	private Bitmap portao;
	private Bitmap bomba;
	private Bitmap playButton;
	private Bitmap topo_menu;
	
	public Bitmap getTopo_menu() {
		return topo_menu;
	}
	public Bitmap getPlayButton() {
		return playButton;
	}
	public Bitmap getBomba() {
		return bomba;
	}
	private static BitmapStorage instance;
	public static BitmapStorage getInstance()
	{
		if(instance == null)
		{
			instance = new BitmapStorage();
		}
		
		return instance;
	}
	private BitmapStorage()
	{	
		// instantiate the bitmaps
		this.monstro_01 = BitmapFactory.decodeResource(MinhasCoisas.getResources(), R.drawable.monstro_01);
		this.monstro_02 = BitmapFactory.decodeResource(MinhasCoisas.getResources(), R.drawable.monstro_02);
		this.monstro_03 = BitmapFactory.decodeResource(MinhasCoisas.getResources(), R.drawable.monstro_03);
		this.monstro_04 = BitmapFactory.decodeResource(MinhasCoisas.getResources(), R.drawable.monstro_04);
		this.portao = BitmapFactory.decodeResource(MinhasCoisas.getResources(), R.drawable.portao);
		this.bomba = BitmapFactory.decodeResource(MinhasCoisas.getResources(), R.drawable.bomba);
		this.playButton = BitmapFactory.decodeResource(MinhasCoisas.getResources(), R.drawable.play_sombra);
		this.topo_menu = BitmapFactory.decodeResource(MinhasCoisas.getResources(), R.drawable.topo_menu);
	
	
	}
}
